package com.designmodel.designmodel.ChainOfResponsibility_Pattern_责任链模式;


public class Test {
	public static void main(String[] args) {
		Requeset  request=new  Requeset();
		Response  response=new Response();

		request.setRequestStr("request开始");
		response.setResponseStr("response开始");



		ChainFilter chainFilter=new ChainFilter();

		chainFilter.addFilter(new HtmlFilter()).addFilter(new TagFilter());

		chainFilter.doFilter(request,response,chainFilter);

		System.out.println(request.getRequestStr());
		System.out.println(response.getResponseStr());


	}
}
